package com.xinyun.traceability.enity.po;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 商品
 */
public class Commodity {

    /**
     * id
     */
    private Integer id;

    /**
     * 唯一表示uuid
     */
    private String uuid;

    /**
     * 名称
     */
    private String name;

    /**
     * 出产地
     */
    private String place;

    /**
     * 单价
     */
    private BigDecimal unitPrice;

    /**
     * 经销商
     */
    private String distributor;

    /**
     * 二维码
     */
    private String qrcode;

    private Integer businessId;

    private Date createTime;

    private Date updateTime;

    /**
     * 有效性
     */
    private Integer valid;

    /**
     * 二维码扫描次数
     */
    private Integer scanCount;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getPlace() {
        return place;
    }

    public void setPlace(String place) {
        this.place = place == null ? null : place.trim();
    }

    public BigDecimal getUnitPrice() {
        return unitPrice;
    }

    public void setUnitPrice(BigDecimal unitPrice) {
        this.unitPrice = unitPrice;
    }

    public String getDistributor() {
        return distributor;
    }

    public void setDistributor(String distributor) {
        this.distributor = distributor == null ? null : distributor.trim();
    }

    public String getQrcode() {
        return qrcode;
    }

    public void setQrcode(String qrcode) {
        this.qrcode = qrcode == null ? null : qrcode.trim();
    }


    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getScanCount() {
        return scanCount;
    }

    public void setScanCount(Integer scanCount) {
        this.scanCount = scanCount;
    }

    public Integer getBusinessId() {
        return businessId;
    }

    public void setBusinessId(Integer businessId) {
        this.businessId = businessId;
    }

    public Integer getValid() {
        return valid;
    }

    public void setValid(Integer valid) {
        this.valid = valid;
    }
}